//引入axios封装
import request from '@/utils/request'
//获取群聊任务详细
export function getAdvertisement(params) {
  return request({
    url: '/Advertisement/get/Advertisement',
    method: 'post',
    data:params
  })
}
//删除群聊任务
export function deleteAdvertisement(id) {
  return request({
    url: `/Advertisement/delete/Advertisement/${id}`,
    method: 'post',
  })
}
//新增群聊任务
export function insertAdvertisement(params) {
  return request({
    url: `/Advertisement/insert/Advertisement`,
    method: 'post',
    data:params
  })
}
//修改群聊任务
export function updateAdvertisement(params) {
  return request({
    url: `/Advertisement/update/Advertisement`,
    method: 'post',
    data:params
  })
}
